package test;

import java.io.Serializable;
import java.util.List;

/**
 * @Description 学生类
 * @Author zhongzihao
 * @Date 2021/6/22 10:39 上午
 */
public class Student implements Serializable {
    private String name;
    private int age;
    private List<Book> books;

    private List<String> strings;
    public Student() {
    }

    public Student(String name, int age, List<Book> books, List<String> strings) {
        this.name = name;
        this.age = age;
        this.books = books;
        this.strings = strings;
    }

    public Student(String name, int age, List<Book> books) {
        this.name = name;
        this.age = age;
        this.books = books;
    }

    public Student(String name, List<String> strings) {
        this.name = name;
        this.strings = strings;
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Student(String name) {
        this.name = name;
    }

    public List<String> getStrings() {
        return strings;
    }

    public void setStrings(List<String> strings) {
        this.strings = strings;
    }

    public List<Book> getBooks() {
        return books;
    }

    public void setBooks(List<Book> books) {
        this.books = books;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", books=" + books +
                '}';
    }
}
